package com.baobaotao.anno;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class LogonService implements BeanNameAware {
	@Autowired(required = false)
	private LogDao logDao;
	@Autowired
	@Qualifier("userDao")
	private UserDao userDao;

	public LogDao getLogDao() {
		return logDao;
	}

	public void setLogDao(LogDao logDao) {
		this.logDao = logDao;
	}

	@Override
	public void setBeanName(String beanName) {
		// TODO Auto-generated method stub
		System.out.println("beanName" + beanName);

	}

	public void initMethod1() {
		System.out.println("initMethod1");
	}

	public void initMethod2() {
		System.out.println("initMethod2");
	}

}
